package com.lill.system.serivce.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lill.common.component.util.IdUtil;
import com.lill.system.dao.ISysMsgModelInfoDao;
import com.lill.system.model.SysMsgModelInfoEntity;
import com.lill.system.service.ISysMsgModelInfoService;

/**
 * 消息模板Service实现类
 *
 * @author lill
 * @date 2020-04-09 18:08:25
 */
@Service("com.lill.system.serivce.impl.SysMsgModelInfoServiceImpl")
public class SysMsgModelInfoServiceImpl implements ISysMsgModelInfoService {
    @Autowired
    private ISysMsgModelInfoDao msgModelInfoDao;

    public SysMsgModelInfoEntity queryObject(String id) {
        return msgModelInfoDao.queryObject(id);
    }
    
	public SysMsgModelInfoEntity queryObjectByCode(String code) {
		return msgModelInfoDao.queryObjectByCode(code);
	}

    public List<SysMsgModelInfoEntity> queryList(Map<String, Object> map) {
        return msgModelInfoDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return msgModelInfoDao.queryTotal(map);
    }

    public int save(SysMsgModelInfoEntity msgModelInfo) {
        msgModelInfo.setId(IdUtil.createIdbyUUID());
        return msgModelInfoDao.save(msgModelInfo);
    }

    public int update(SysMsgModelInfoEntity msgModelInfo) {
        return msgModelInfoDao.update(msgModelInfo);
    }

    public int delete(String id) {
        return msgModelInfoDao.delete(id);
    }

    public int deleteBatch(String[] ids) {
        return msgModelInfoDao.deleteBatch(ids);
    }
    
    @Override
	public int deleteLogicByMap(Map<String, Object> map) {
		return msgModelInfoDao.deleteLogicByMap(map);
	}

}
